package com.ymttest.common.enums;

/**
 * 订单放款状态
 */
public enum OrderUnfreezeStatusEnum {
	/**
	 * 未知
	 */
	Unkown(0),
	/**
	 * 等待放款
	 */
	Waiting(1),
	/**
	 * 已经放款
	 */
	Unfreezed(2),
	/**
	 * 自动放款
	 */
	AutoUnfreezed(3),
	/**
	 * 延期的
	 */
	Deferred(4);

	private int intValue;
	private static java.util.HashMap<Integer, OrderUnfreezeStatusEnum> mappings;

	private synchronized static java.util.HashMap<Integer, OrderUnfreezeStatusEnum> getMappings() {
		if (mappings == null) {
			mappings = new java.util.HashMap<Integer, OrderUnfreezeStatusEnum>();
		}
		return mappings;
	}

	private OrderUnfreezeStatusEnum(int value) {
		intValue = value;
		OrderUnfreezeStatusEnum.getMappings().put(value, this);
	}

	public int getValue() {
		return intValue;
	}

	public static OrderUnfreezeStatusEnum forValue(int value) {
		return getMappings().get(value);
	}
}